all=main
lib=../../lib.a
cflags=-g -Wall -std=c++11
gflags=`pkg-config --cflags --libs gtkmm-3.0`
xflags=`pkg-config libxml++-2.6 --cflags --libs` -lpthread

all: $(all) $(lib)
main: main.cpp $(lib)
	g++ main.cpp $(cflags) $(xflags) $(gflags) $(lib) -o main
../../lib.a:
	make -C ../.. lib.a

clean:
	rm -rRf $(lib) $(all)
